package com.chat.system.mapper;

import com.chat.system.entity.dto.ChatUserDTO;
import com.chat.system.entity.po.ChatUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author czh
 * @since 2023-10-27
 */
@Mapper
public interface ChatUserMapper extends BaseMapper<ChatUser> {

    List<ChatUserDTO> listChatUsers(@Param("userName") String userName,
                                    @Param("currentUserName") String currentUserName);
}
